###readme.txt

This folder contains the all Tables and Figures in original analysis included in
Chapter 7 of:
    Enos, Ryan D. 2017. The Space Between Us:
        Social Geography and Politics

Updated: January 2, 2018

***To replicate these files*** run "Chapter7Master.r" by typing
"source('Chapter5Master.r')" into the R terminal. This will use pre-processed
data to output tables and figures in the book and appendix. It does so by calling
the subordinate files: "TableA26.r", "TableA27.r", "TableA28.r",
"TableA29Figure7_4.r", and "TableA30.r".

**Prior to executing the scripts, the R terminal should be pointed to the
directory in which the replication files are located, which can be accomplished
by typing "setwd('..')" where ".." is the local file structure where the replication
files are located.

These files require the R programming language, which can be downloaded here: http://www.r-project.org/

You execute replication_master.r, you may need to install the packages used,
this can be accomplished by typing the following in the R terminal:
install.packages('apsrtable'); install.packages('Zelig');
install.packages('ggplot2');


Questions? Please contact Ryan Enos (renos@gov.harvard.edu).

************************************************************** ***

There are five .csv files associated with these scripts: "TableA26_data.csv",
"TableA27_data.csv", "TableA28_data.csv", "TableA29Figure7_4_data.csv",
and "TableA30_data.csv". The variables included in the .csv files are the same,
except for first five variables described below.

Variables:

"public.ingroup.preference": does the subject cooperate with the ingroup and
not the outgroup? (0/1)

"ingroup.task": does the subject select the ingroup member for partnership in
the task? (0/1)

"outgroup.distrust.cont": level of distrust for the outgroup, with higher numbers
being greater distrust.

"in.out.diff.dictator": difference in NIS shared with the ingroup and the
outgroup.

"outgroup_close_numeric": levels of preferred exclusion of the outgroup, with
higher numbers being greater exclusion.


**common variables**

"outgroup.dissim.yeshiva": segregation in city or Jerusalem Quarter, based on
ultra-Orthodox population counts from Yeshiva attendance.

"outgroup.yeshiva": outgroup percentage in city or Jerusalem Quarter, based on
ultra-Orthodox population counts from Yeshiva attendance.

"demo1.sex": is the subject male? (0/1)

"demo1.age": subject age in years

"demo1.ethnicity": self-reported ethnicity of subject ('ash' is Ashkenazi, 'sep' is
Sephardic, 'mixed' and 'other' are also values).

"demo2.left_right": self-reported political ideology on 7-point scale with higher
values being more conservative

"index.city": subject's city or Jerusalem neighborhood of residence

"nonjewish_pcnt": non-Jewish percentage in city or Jerusalem Quarter

"income": self-reported income ('low','average','high')

"high.school": self-reported, did the subject graduate from high school? (0/1)

"immigrant": self-reported, is the subject an immigrant? (0/1)

"jerusalem": does the subject live in Jerusalem (0/1)

"high.outgroup.interactions": does the subject frequently have interpersonal
interactions with the outgroup? (0/1)
